#!/bin/sh
export day="day"
for i in `seq 0 10`; #only care about next 2 days ER
do
    #export earningdate="-d$i$day"
    export earningdate=`date -d$i$day +'%Y%m%d'` #days after today
    curl -stderr "http://biz.yahoo.com/research/earncal/$earningdate.html" |grep -o -P ">[A-Z]{1,4}<" |egrep -v "IPO|EPS" | sed 's/<//g' |sed 's/>//g' |sort |uniq
done    

